package com.pig4cloud.pig.module.api.entity.promoter;

import com.baomidou.mybatisplus.annotation.*;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 推广员 邀请记录对象 promoter_user_record
 *
 * @author ruoyi
 * @date 2022-11-11
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("promoter_user_record")
public class PromoterUserRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 推广员 id
     */
    private Long promoterId;

    /**
     * 推广员 微信用户 id
     */
    private Long promoterWxUserId;
    @Excel(name = "推广员")
    @TableField(exist = false)
    private String promoterName;

    /**
     * 被邀请用户id
     */
    private Long regUserId;
    @Excel(name = "被推广用户")
    @TableField(exist = false)
    private String regUserName;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 状态  0 - 未结算 1 - 结算中 2 - 已结算
     */
    private Long state;

    @Excel(name = "状态")
    @TableField(exist = false)
    private String states;

    /**
     * 结算订单id
     */
    private Long settleId;

    /**
     * 结算单价
     */
    private BigDecimal singlePrice;

    /**
     * 发起提现时间
     */
    private Date addSettleTime;
    @Excel(name = "提现时间")
    @TableField(exist = false)
    private String addSettleTimes;

    /**
     * 支付提现时间
     */
    private Date paySettleTime;

    @TableField(exist = false)
    private String faceUrl;

    @TableField(exist = false)
    private String promoterSettlement;
    /**
     * 结算开始日期
     */
    @TableField(exist = false)
    private String beginDate;

    /**
     * 结算结束日期
     */
    @TableField(exist = false)
    private String endDate;


}
